package com.ars.main;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class Launcher extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        Parent root = FXMLLoader.load(getClass().getResource("Login.fxml"));
        primaryStage.setTitle("航空订票系统");
        Scene scene = new Scene(root);
        primaryStage.setScene(scene);
        primaryStage.show();
        //将登录舞台添加到管理器
        StageCollection.getInstance().put("loginStage", primaryStage);
    }
}
